﻿using System;
using System.Windows.Forms;
using MovieBrowser.Model;

namespace MovieBrowser.Presentation.Forms.Db
{
    public partial class WebLinksForm : Form
    {
        private MovieDbEntities _entities;

        public WebLinksForm()
        {
            InitializeComponent();
            _entities=new MovieDbEntities();
        }

        private void webLinkBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            _entities.SaveChanges();
        }

        private void WebLinksForm_Load(object sender, EventArgs e)
        {
            webLinkBindingSource.DataSource = _entities.WebLinks;
        }

       
    }
}
